package com.yellowpage.nsp.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * NspErrorCode entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "NSP_ERROR_CODE")
public class NspErrorCode implements java.io.Serializable {

	// Fields

	private String errorCode;
	private String errorDesc;

	// Constructors

	/** default constructor */
	public NspErrorCode() {
	}

	/** full constructor */
	public NspErrorCode(String errorDesc) {
		this.errorDesc = errorDesc;
	}

	// Property accessors
	@Id	
	@Column(name = "ERROR_CODE", unique = true, nullable = false)
	public String getErrorCode() {
		return this.errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	@Column(name = "ERROR_DESC", length = 125)
	public String getErrorDesc() {
		return this.errorDesc;
	}

	public void setErrorDesc(String errorDesc) {
		this.errorDesc = errorDesc;
	}

}